const koa = require("koa");
const router = require("koa-router")();
const main = require("./model/index")
const app = new koa();
router.get("/",async ctx=>{
    var result = await main();
    ctx.body = {
        code:200,
        result
    };
})
app.use(router.routes());
app.listen(8080);